package com.simulation.demo.controller;

import com.simulation.demo.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author buddy
 */
@RestController
public class DemoController {

    @Autowired
    private DemoService demoService;

    @GetMapping("/hello")
    public void hello(){
        System.out.println("hello");
    }

    @GetMapping("/simulation3")
    public String simulation3(Long projectId){
        return demoService.simulation3(projectId);
    }


    @GetMapping("/getStatus")
    public String getStatus(String sessionId){
        return demoService.getStatus(sessionId);
    }
}
